package com.bbx.api.sdk.net.passeger.conn;

import java.io.InputStream;

import android.content.Context;

import com.bbx.api.sdk.model.passanger.Return.CouponCount;
import com.bbx.api.sdk.model.passanger.Return.UsableSale;
import com.bbx.api.sdk.net.base.BaseNetwork;
import com.bbx.api.sdk.net.base.GeneralParser;

/** 
 * @Path com.bbx.api.sdk.net.passeger.conn.UsableSaleNet.java
 * @Author 严旭文
 * @Date 2016-11-22 上午11:41:37
 * @Company 蓝海（福建）信息技术有限公司
 * @Description
 * 下单立减
 */
public class UsableSaleNet extends BaseNetwork {

	public UsableSaleNet(Context context, String datas) {
		super(context, false);
		setData(datas);
	}
	public UsableSaleNet(Context context) {
		super(context, false);
	}
    public void setData(String datas){
    	super.setData(datas);
    	url =USABLESALE_Url;
    	InputStream inputStream = getContentWithPOST((datas));
    	if (inputStream != null) {
    		parser = new GeneralParser(context, inputStream);
    	}	
    }
	@Override
	public Object getData() {
		// TODO Auto-generated method stub
		return parser.getData(UsableSale.class);
	}
}
